<?php

namespace app\controller\main;

use linkphp\Application;

class Blog
{

    public function __construct()
    {
        Application::singletonEager(
            'blog',
            'app\\logic\\main\\Blog'
        );
        Application::singletonEager(
            'blogData',
            'app\\model\\main\\Blog'
        );
    }

    public function getBlogList()
    {
        return Application::get('blog')->getBlogList();
    }

}
